package core.communication.message;

import java.util.List;

import com.google.common.collect.Lists;

public class VotesPackageMessage extends Message {
	private static final long serialVersionUID = 2134551715250085335L;

	private List<String> votes;
	private Long electionIdentificationField;
	private String nodeLocatorUri;
	private List<VotesPackageMessage> packages;

	public VotesPackageMessage(Long electionIdentificationField, String nodeLocatorUri) {
		super();
		setPriority(MessagePriority.NORMAL);
		setMessageType(MessageType.VotesPackage);
		setDirection(Direction.UP);
		this.electionIdentificationField = electionIdentificationField;
		this.nodeLocatorUri = nodeLocatorUri;
		this.votes = Lists.newArrayList();
		this.packages = Lists.newArrayList();
	}

	public List<String> getVotes() {
		return votes;
	}

	public Long getElectionIdentificationField() {
		return electionIdentificationField;
	}

	public String getNodeLocatorUri() {
		return nodeLocatorUri;
	}

	public List<VotesPackageMessage> getPackages() {
		return packages;
	}

}
